import qrcode

img = qrcode.make('https://blog.csdn.net/m0_51064412?spm=1000.2115.3001.5343')
img.save('qrcode.png')